const initState = {

    menuList: [],
    housingList: [],

}

const reudcer = (state = initState, action: any) => {
    const { type, payload } = action;
    switch (type) {

        case 'CHANGE_MENU_LIST':
            return { ...state, menuList: action.data }
        case 'GET_HOUSING_LIST':
            return { ...state, housingList: payload }

        default:
            return state
    }
}

export default reudcer;




